﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            height: 16px;
        }
        #form1
        {}
        .style3
        {
            height: 26px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
 <asp:Panel ID="pnlGlaven" runat="server" style="text-align: center">
         <asp:Panel ID="Panel1" runat="server" HorizontalAlign="Center">
        <asp:Panel ID="Panel2" runat="server" style="text-align: center"  BorderStyle="Outset" 
            HorizontalAlign="Center" Height="250">
            <asp:Image ID="Image1" runat="server" ImageAlign="Middle" Height="220" ImageUrl="~/Sliki/shopping-cart11.jpg" />
            <asp:Panel ID="PNaslov" runat="server">
             <asp:Label ID="lblNaslov" runat="server" Font-Bold="True" ForeColor="Red" Font-Size="X-Large"></asp:Label>
            </asp:Panel>
           
        </asp:Panel>
        </asp:Panel>
       <div style="text-align: center; width: 921px; margin-left: 450px;">
        <asp:Menu ID="Menu2" runat="server" BackColor="#F7F6F3" 
            DynamicHorizontalOffset="2" Font-Names="Verdana" Font-Size="1 em" 
            ForeColor="#7C6F57" Orientation="Horizontal" StaticSubMenuIndent="10px" 
                onmenuitemclick="Menu2_MenuItemClick">
            <DynamicHoverStyle BackColor="#7C6F57" ForeColor="White" />
            <DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
            <DynamicMenuStyle BackColor="#F7F6F3" />
            <DynamicSelectedStyle BackColor="#5D7B9D" />
            <Items>
                <asp:MenuItem Text="Дома" Value="Дома" NavigateUrl="~/Doma.aspx"></asp:MenuItem>
                <asp:MenuItem Text="Облека за мажи" Value="Облека за мажи" 
                    NavigateUrl="~/za_mazi.aspx" Selectable="False">
                    <asp:MenuItem Text="Маици" Value="Маици"></asp:MenuItem>
                    <asp:MenuItem Text="Патики" Value="Патики"></asp:MenuItem>
                    <asp:MenuItem Text="Панталони" Value="Панталони"></asp:MenuItem>
                </asp:MenuItem>
                <asp:MenuItem Text="Облека за жени" Value="Облека за жени" 
                    NavigateUrl="~/za_zeni.aspx" Selectable="False">
                    <asp:MenuItem Text="Фустани" Value="Фустани"></asp:MenuItem>
                    <asp:MenuItem Text="Штикли" Value="Штикли"></asp:MenuItem>
                    <asp:MenuItem Text="Капи" Value="Капи"></asp:MenuItem>
                </asp:MenuItem>
                <asp:MenuItem Text="Инфо" Value="Инфо" NavigateUrl="~/Info.aspx"></asp:MenuItem>
            </Items>
            <StaticHoverStyle BackColor="#7C6F57" ForeColor="White" />
            <StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
            <StaticSelectedStyle BackColor="#5D7B9D" />
        </asp:Menu></div>
    
    </asp:Panel>


    <div style="text-align: center" >
        <table cellspacing="5px">
<tr>
<td>
<table>
<tr>
<td>
    Корисничко име:
</td>
<td>
    <asp:TextBox ID="username" runat="server" Width="150px"></asp:TextBox>
    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
        ControlToValidate="username" ErrorMessage="Внесете корисничко име" 
        ForeColor="Red" ValidationGroup="1">*</asp:RegularExpressionValidator>
</td>
</tr>
<tr>
<td>
    Лозинка:
</td>
<td>
    <asp:TextBox ID="password" runat="server" TextMode="Password" Width="150px"></asp:TextBox>
    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
        ControlToValidate="password" ErrorMessage="Внесете лозинка" 
        ForeColor="Red" ValidationGroup="1">*</asp:RegularExpressionValidator>
</td>
</tr>
<tr>
<td>

    <asp:Label ID="lblinfo" runat="server" Text=""></asp:Label>
    <asp:ValidationSummary ID="ValidationSummary5" runat="server" 
        ForeColor="#CC0000" />

</td>
<td>
<asp:Button ID="btnLogirajse" runat="server" Text="Логирај се" onclick="btnLogirajse_Click" 
        />
</td>
</tr>
</table>
</td>
</tr>
</table>


        <br />
        <br />


        <asp:Button ID="btnNovKorisnik" runat="server" Text="Нов Корисник" 
            onclick="d_Click" />
        <br />
        <br />
        <asp:Wizard ID="Wizard1" runat="server" ActiveStepIndex="0" BackColor="#F7F6F3" 
            BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="1px" 
            Font-Names="Verdana" Font-Size="0.8em" Height="234px" style="text-align: left; margin-top: 6px;" 
            Width="570px" CancelButtonText="Откажи" FinishCompleteButtonText="Крај" 
            FinishPreviousButtonText="Врети се назад" StartNextButtonText="Следна страна" 
            StepNextButtonText="Следна страна" StepPreviousButtonText="Врати се назад" 
            Visible="False" onnextbuttonclick="Wizard1_NextButtonClick" 
            onfinishbuttonclick="Wizard1_FinishButtonClick">
            <HeaderStyle BackColor="#5D7B9D" BorderStyle="Solid" Font-Bold="True" 
                Font-Size="0.9em" ForeColor="White" HorizontalAlign="Left" />
            <NavigationButtonStyle BackColor="#FFFBFF" BorderColor="#CCCCCC" 
                BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" 
                ForeColor="#284775" />
            <SideBarButtonStyle BorderWidth="0px" Font-Names="Verdana" ForeColor="White" />
            <SideBarStyle BackColor="#7C6F57" BorderWidth="0px" Font-Size="0.9em" 
                VerticalAlign="Top" />
            <StepStyle BorderWidth="0px" ForeColor="#5D7B9D" />
            <WizardSteps>
                <asp:WizardStep runat="server" StepType="Start" 
                    title="Лични податоци">
                    <table class="style1">
                        <tr>
                            <td>
                                Име:</td>
                            <td>
                                <asp:TextBox ID="txtIme" runat="server"></asp:TextBox>
                            </td>
                            <td>
                                <asp:RequiredFieldValidator ID="Mora1" runat="server" 
                                    ControlToValidate="txtIme" ErrorMessage="Мора да внесете име!" 
                                    ForeColor="Red">*</asp:RequiredFieldValidator>
                                <asp:CustomValidator ID="greska1" runat="server" ControlToValidate="txtIme" 
                                    ErrorMessage="Името е предолго" ForeColor="Red" 
                                    OnServerValidate="greska1_ServerValidate">*</asp:CustomValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Презиме:</td>
                            <td>
                                <asp:TextBox ID="txtPrezime" runat="server"></asp:TextBox>
                            </td>
                            <td>
                                <asp:RequiredFieldValidator ID="Mora2" runat="server" 
                                    ControlToValidate="txtPrezime" ErrorMessage="Мора да внесете презиме!" 
                                    ForeColor="Red">*</asp:RequiredFieldValidator>
                                <asp:CustomValidator ID="greska2" runat="server" ControlToValidate="txtPrezime" 
                                    ErrorMessage="Презимето е предолго" ForeColor="Red" 
                                    OnServerValidate="greska2_ServerValidate">*</asp:CustomValidator>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <asp:ValidationSummary ID="ValidationSummary2" runat="server" ForeColor="Red" />
                            </td>
                            <td>
                                &nbsp;</td>
                        </tr>
                    </table>
                </asp:WizardStep>
                <asp:WizardStep runat="server" StepType="Step" Title="Информации">
                    <table class="style1">
                        <tr>
                            <td>
                                Е-маил:</td>
                            <td>
                                <asp:TextBox ID="txtMail" runat="server"></asp:TextBox>
                            </td>
                            <td>
                                <asp:RegularExpressionValidator ID="Vaka1" runat="server" 
                                    ControlToValidate="txtMail" ErrorMessage="Внесете коректна е-маил адреса." 
                                    ForeColor="Red" 
                                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
                                <asp:RequiredFieldValidator ID="Mora3" runat="server" 
                                    ControlToValidate="txtMail" ErrorMessage="Внеси е-маил адреса." 
                                    ForeColor="Red">*</asp:RequiredFieldValidator>
                                <asp:CustomValidator ID="greska3" runat="server" ControlToValidate="txtMail" 
                                    ErrorMessage="Постои таков корисник во базата." ForeColor="Red" 
                                    OnServerValidate="greska3_ServerValidate">*</asp:CustomValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Кредитна картичка:
                            </td>
                            <td>
                                <asp:TextBox ID="txtKreditnaKarticka" runat="server"></asp:TextBox>
                            </td>
                            <td>
                                <asp:CustomValidator ID="greska4" runat="server" 
                                    ControlToValidate="txtKreditnaKarticka" 
                                    ErrorMessage="Внесете ја вашиот број на кредитна коректно." ForeColor="Red" 
                                    OnServerValidate="greska4_ServerValidate">*</asp:CustomValidator>
                                <asp:RegularExpressionValidator ID="Vaka2" runat="server" 
                                    ControlToValidate="txtKreditnaKarticka" 
                                    ErrorMessage="Морате го внесете точниот број на кредитната картичка" ForeColor="Red" 
                                    ValidationExpression="\d{16}">*</asp:RegularExpressionValidator>
                                <asp:RequiredFieldValidator ID="Mora4" runat="server" 
                                    ControlToValidate="txtKreditnaKarticka" 
                                    ErrorMessage="Внесете го бројот на кретитната картичка." ForeColor="Red">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <asp:ValidationSummary ID="ValidationSummary3" runat="server" ForeColor="Red" />
                            </td>
                            <td>
                                &nbsp;</td>
                        </tr>
                    </table>
                </asp:WizardStep>
                <asp:WizardStep runat="server" StepType="Step" Title="Лозинка">
                    <table class="style1">
                        <tr>
                            <td class="style3">
                                Внесете лозинка:</td>
                            <td class="style3">
                                <asp:TextBox ID="txtLozinka" runat="server"></asp:TextBox>
                            </td>
                            <td class="style3">
                                <asp:RequiredFieldValidator ID="Mora5" runat="server" 
                                    ControlToValidate="txtLozinka" ErrorMessage="Внесете лозинка" 
                                    ForeColor="Red">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Повторете ја лозинката:</td>
                            <td>
                                <asp:TextBox ID="txtLozinkaPovtorno" runat="server"></asp:TextBox>
                            </td>
                            <td>
                                <asp:RequiredFieldValidator ID="Mora6" runat="server" 
                                    ControlToValidate="txtLozinkaPovtorno" ErrorMessage="Повторија лозинката!" 
                                    ForeColor="Red">*</asp:RequiredFieldValidator>
                                <asp:CompareValidator ID="CompareValidator1" runat="server" 
                                    ControlToCompare="txtLozinka" ControlToValidate="txtLozinkaPovtorno" 
                                    ErrorMessage="Лозинките не се совпаѓаат!" ForeColor="Red">*</asp:CompareValidator>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <asp:ValidationSummary ID="ValidationSummary4" runat="server" ForeColor="Red" />
                            </td>
                            <td>
                                &nbsp;</td>
                        </tr>
                    </table>
                </asp:WizardStep>
                <asp:WizardStep runat="server" AllowReturn="False" StepType="Finish" 
                    Title="Крај">
                    <table class="style1">
                        <tr>
                            <td>
                                Име:</td>
                            <td>
                                <asp:Label ID="lblIme" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="style2">
                                Презиме:</td>
                            <td class="style2">
                                <asp:Label ID="lblPrezime" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Е-маил:</td>
                            <td>
                                <asp:Label ID="lblMail" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Кредитна
                                <br />
                                картичка:</td>
                            <td>
                                <asp:Label ID="lblKarticka" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                За успешно да биде креиран корисникот притеснете КРАЈ.</td>
                        </tr>
                    </table>
                </asp:WizardStep>
            </WizardSteps>
        </asp:Wizard>
        <br />
        <asp:Label ID="lblGreska" runat="server"></asp:Label>
        <br />
        <asp:GridView ID="gvSporedba" runat="server" AutoGenerateColumns="False" 
            Visible="False">
            <Columns>
                <asp:BoundField DataField="mail" HeaderText="Mail" />
                <asp:BoundField DataField="lozinka" HeaderText="lozinka" />
            </Columns>
        </asp:GridView>
        <asp:GridView ID="gvAdmin" runat="server" Visible="False">
        </asp:GridView>
        <br />
    </div>
    </form>
</body>
</html>
